package com.bean;

import java.sql.Timestamp;


/**
 * TfAccountRecord entity. @author MyEclipse Persistence Tools
 */

public class TfAccountRecord  implements java.io.Serializable {


    // Fields    

     /** serialVersionUID*/
	private static final long serialVersionUID = 7024013569383418107L;
	private Long id;
    private TransactionRecord transactionRecord;
    private Double amount;
    private Short category;
    private Timestamp createTime;
    private Short type;
    private Short status;


    // Constructors
    private Integer year;
 	private Integer month;
 	private Integer day;

    /** default constructor */
    public TfAccountRecord() {
    }
    public TfAccountRecord(Double amount, Short type){
		this.amount = amount;
		this.type = type;
	}
	
	public TfAccountRecord(Double amount, Short type, Short category){
		this.amount = amount;
		this.type = type;
		this.category = category;
	}
	
	public TfAccountRecord(Integer year, Integer month, Integer day, Double amount, Short type){
		this.year = year;
		this.month = month;
		this.day = day;
		this.amount = amount;
		this.type = type;
	}
	public TfAccountRecord(Integer year, Integer month, Double amount, Short type){
		this.year = year;
		this.month = month;
		this.amount = amount;
		this.type = type;
	}
	public TfAccountRecord(Integer year, Double amount, Short type){
		this.year = year;
		this.amount = amount;
		this.type = type;
	}

	/** minimal constructor */
    public TfAccountRecord(Double amount, Timestamp createTime, Short type, Short status,Short category) {
        this.amount = amount;
        this.createTime = createTime;
        this.type = type;
        this.status = status;
        this.category=category;
        }
    
    /** full constructor */
    public TfAccountRecord(TransactionRecord transactionRecord, Double amount, Timestamp createTime, Short type, Short status,Short category) {
        this.transactionRecord = transactionRecord;
        this.amount = amount;
        this.createTime = createTime;
        this.type = type;
        this.category=category;
        this.status = status;
    }

   
    // Property accessors

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public TransactionRecord getTransactionRecord() {
        return this.transactionRecord;
    }
    
    public void setTransactionRecord(TransactionRecord transactionRecord) {
        this.transactionRecord = transactionRecord;
    }

    public Double getAmount() {
        return this.amount;
    }
    
    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Short getType() {
        return this.type;
    }
    
    public void setType(Short type) {
        this.type = type;
    }

    public Short getStatus() {
        return this.status;
    }
    
    public void setStatus(Short status) {
        this.status = status;
    }

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}
	public Short getCategory() {
		return category;
	}
	public void setCategory(Short category) {
		this.category = category;
	}
}